from launch import LaunchDescription
from launch_ros.actions import Node
import os
from ament_index_python.packages import get_package_share_directory
# launch two radar nodes with different namespaces and parameter files


def generate_launch_description():
    rgb_params = os.path.join(
        get_package_share_directory(
            "jetson_dec"), "launch", "param.yaml"
    )

    node = Node(
        package="jetson_dec", executable="decoder", parameters=[rgb_params], output="screen"
    )
    launch_description = LaunchDescription([node])
    return launch_description
